package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.StockBasicMapper;
import com.ruoyi.quartz.domain.StockBasic;
import com.ruoyi.quartz.service.IStockBasicService;
import com.ruoyi.common.core.text.Convert;

/**
 * 股票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-27
 */
@Service
public class StockBasicServiceImpl implements IStockBasicService 
{
    @Autowired
    private StockBasicMapper stockBasicMapper;

    /**
     * 查询股票信息
     * 
     * @param id 股票信息主键
     * @return 股票信息
     */
    @Override
    public StockBasic selectStockBasicById(Long id)
    {
        return stockBasicMapper.selectStockBasicById(id);
    }

    /**
     * 查询股票信息列表
     * 
     * @param stockBasic 股票信息
     * @return 股票信息
     */
    @Override
    public List<StockBasic> selectStockBasicList(StockBasic stockBasic)
    {
        return stockBasicMapper.selectStockBasicList(stockBasic);
    }

    /**
     * 新增股票信息
     * 
     * @param stockBasic 股票信息
     * @return 结果
     */
    @Override
    public int insertStockBasic(StockBasic stockBasic)
    {
        return stockBasicMapper.insertStockBasic(stockBasic);
    }

    /**
     * 修改股票信息
     * 
     * @param stockBasic 股票信息
     * @return 结果
     */
    @Override
    public int updateStockBasic(StockBasic stockBasic)
    {
        return stockBasicMapper.updateStockBasic(stockBasic);
    }

    /**
     * 批量删除股票信息
     * 
     * @param ids 需要删除的股票信息主键
     * @return 结果
     */
    @Override
    public int deleteStockBasicByIds(String ids)
    {
        return stockBasicMapper.deleteStockBasicByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除股票信息信息
     * 
     * @param id 股票信息主键
     * @return 结果
     */
    @Override
    public int deleteStockBasicById(Long id)
    {
        return stockBasicMapper.deleteStockBasicById(id);
    }
}
